import request from '@/utils/request'

export default {

  // 01 分页获取轮播图列表
  page(query) {
    return request({
      url: `/cmsService/admin/banner/page`,
      method: 'post',
      data: query
    })
  },

  // 02 id 删除数据
  deleteOne(id) {
    return request({
      url: `/cmsService/admin/banner/delete/${id}`,
      method: 'post'
    })
  },

  // 03 新增数据
  save(banner) {
    return request({
      url: `/cmsService/admin/banner/save`,
      method: 'post',
      data: banner
    })
  },


  // 04 更新数据
  updateOne(banner) {
    return request({
      url: `/cmsService/admin/banner/update`,
      method: 'post',
      data: banner
    })
  },


}



